from django.conf.urls import patterns, include, url
from django.conf import settings
from django.contrib import admin

admin.autodiscover()

urlpatterns = patterns('',
                       # Examples:
                       url(r'^$', 'myhotel.views.index', name='home'),
                       # url(r'^blog/', include('blog.urls')),
                       url(r'^admin/', include(admin.site.urls)),
                       url(r'^myhotel/', include('myhotel.urls')),
                       url(r'^accounts/', include('registration.backends.simple.urls')),
                       #url(r'^accounts/register/$', register),
                       #url(r'^accounts/register/success/$', register_success),
)
if settings.DEBUG:
    urlpatterns += patterns('django.views.static',
                            (r'media/(?P<path>.*)', 'serve', {'document_root': settings.MEDIA_ROOT}),
                            )